package com.jyw.business.obstacles.domain.dto.web;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyw.system.domain.vo.SimpleFileVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author 沈峻
 * @ClassName CompleteOrderDto
 * @Description 完成工单请求实体
 * @Date 2023/8/11 17:35
 **/
@ApiModel("完成工单请求实体")
@Data
public class CompleteOrderDto extends BaseOrderDto{

    @ApiModelProperty(value = "订单号", required = true)
    private String orderNum;

    @ApiModelProperty(value = "故障分类")
    private String faultType;

    @ApiModelProperty(value = "故障描述")
    private String faultRemark;

    @ApiModelProperty(value = "解决方法")
    private String makeWay;

    @ApiModelProperty(value = "附件")
    private List<SimpleFileVo> processEnclosure;

    @ApiModelProperty(value = "实际工时")
    @Max(value = 1000, message = "最大值为1000")
    @Min(value = 0, message = "最小值为0")
    private BigDecimal realTime;

    @ApiModelProperty(value = "实际报修地址")
    private Integer actualRepairPlace;

    @ApiModelProperty(value = "资产名称")
    private String equipment;

    @ApiModelProperty(value = "资产位置id")
    private Integer equipmentAddressId;

    @ApiModelProperty(value = "资产位置")
    private String equipmentAddress;

    @ApiModelProperty("处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date makeTime;
}
